package top.hzy520.personalblog.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import top.hzy520.personalblog.po.Blog;
import top.hzy520.personalblog.vo.BlogQuery;

import java.util.List;

public interface BlogService {
    Blog getBlog(Long id);
    Blog getAndConvert(Long id);
    Page<Blog> listBlog(Long tagId,Pageable pageable);
    Page<Blog> listBlog(Pageable pageable,BlogQuery blog);
    Page<Blog> listBlog(Pageable pageable);
    Page<Blog> listBlog(String query,Pageable pageable);
    List<Blog> listBlog(Integer size);
    Blog saveBlog(Blog blog);
    Blog updateBlog(Long id,Blog blog);
    void deleteBlog(Long id);
}
